//
//  YLImageTitleCollectionViewCell.m
//  YLFinanceService
//
//  Created by she1323 on 2017/9/11.
//  Copyright © 2017年 she1323. All rights reserved.
//

#import "YLImageTitleCollectionViewCell.h"
#import "YLMemberItem.h"
#import <UIImageView+WebCache.h>
@interface YLImageTitleCollectionViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@end

@implementation YLImageTitleCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setItem:(YLMemberItem *)item
{
    _item = item;
    
    [_icon sd_setImageWithURL:[NSURL URLWithString:item.iconUrl] placeholderImage:nil];
    _titleLabel.text = item.privilegeName;
    
}

+ (NSString *)cellID
{
    return @"YLImageTitleCollectionViewCell";
}

@end
